home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
VISUALBA
/
PBTL111.ZIP
/
PBTLIB.DOC
< prev
next >
Wrap
Text File
|
1994-04-14
|
7KB
|
189 lines
PBTLIB 1.11
PBTools Librarian for PowerBASIC
One of the best new features of PowerBASIC 3.0 was it's ability to store
and use objects and units in libraries for easier management. To that
end, PowerBASIC came with PBLIB PowerBASIC, Inc's version of a library
management utility.
While it adequately does it's job. It is a far cry from a conventional
LIB utility such as those made by MicroSoft and Borland. It's ability
to take multiple command line options and generate a text file listing
of libraries was noticeably absent. Not to mention it's unorthodox way
of handling multiple command response files.
Along comes my most ambitious project, PBTools:Professional. A large
professional library of procedures and tools. With over 400 procedures
in it, I needed a better way to manage and build libraries. Preferably
something that would work well with a MAKE utility.
Thus PBTLIB was born. It allows you to create and manage PowerBASIC
library files and modules. You can add, remove, extract, and update
modules, either interactively or in batch.
USING PBTLIB:
PBTLIB library[.PBL] [options] [@][commands] [,listfile]
Options:
/? : display PBTLIB options
/DIR : display modules in current directory
/INFO : about PBTLIB
/LIB : display modules in current library
/NOLOGO : do not display sign-on logo
Commands:
+module : add module to library
-module : remove module from library
-+module : replace module in library
*module : extract module from library
-*module : extract and remove module from library
/?
The /? option is available from the command line, at any prompt
during interactive mode and displays a list of available options.
/DIR
The /DIR option only works in interactive mode. When typed at the
"Library name[.PBL]" command line, it provides you a list of all
libraries in the current directory. When typed at the "Operation:"
command line, it provides you a list of objects and units in the
current directory.
/INFO
The /INFO option only works from the command line and displays a
description of PBTLIB and some registration information.
/LIB
The /LIB option works in interactive mode and from the command line,
and provides you a list of objects and units in the current library.
/NOLOGO
The /NOLOGO option only works from the command line and suppresses
the logo banner which displays the version of PBTLIB and copyright
information.
+module
The +module command works on the command line and in interactive
mode, and adds the specified module to the selected library. If
you are in the interactive mode and type in a module name without
a command, the + is assumed. Example:
pbtlib MYLIB +MYFUNC.PBU +MYSUB.OBJ
-module
The -module command works on the command line and in interactive
mode, and removes the specified module from the selected library.
This does not extract the module to your hard disk, it only deletes
it from the library. Example:
pbtlib MYLIB -MYFUNC.PBU
-+module
The -+module command works on the command line and in interactive
mode, and updates the specified module in the selected library.
This is done by first deleting the module from the library, then
adding the new module from the specified path. If the module does
not exist in the library, an error message will be displayed informing
you, but the new module will be added to the library and operation will
continue. Example:
pbtlib MYLIB -+MYSUB.OBJ
*module
The *module command works on the command line and in interactive
mode, and extracts the specified module from the selected library.
This copy's the module to a file from within the library. If the
module already exists in the specified path, it will be overwritten.
The module is not removed from the library. Example:
pbtlib MYLIB *MYSUB.OBJ
-*module
The *module command works on the command line and in interactive
mode, and extracts the specified module from the selected library
and removes it from the library. If the module already exists in
the specified path, it will be overwritten. Example:
pbtlib MYLIB -*MYSUB.OBJ
,listfile
The ,listfile option tells PBTLIB to generate a map of all modules,
procedures names, and external declarations for the target library.
MISC INFO:
If you do not specify an extension, PBTLIB will first try the extension
.PBU to see if the file exists, then .OBJ. If neither is found, an
error message is displayed.
If command options are placed on the command line, PBTLIB will not
go into interactive mode, but instead will execute the commands on
the command line, then exit.
You may place all of the commands into a text file and use the @
designator on the command line to have PBTLIB execute the commands
contained in the text file. For example, if TEST.RSP contains the
following commands:
+MYFUNC
+MYSUB
+PBTOOLS
You can pass TEST.RSP to PBTLIB to create the library CUSTOM using
the following command:
pbtlib CUSTOM @TEST.RSP
It's important to note, that unlike MicroSoft's LIB and Borland's
TLIB, PBTLIB does not require the & charactor at the end of each line
to indicate another command follows on the next line. PBTLIB
considers the entire text file to be nothing but commands. You also
do not need to put just one command on each line. You can put multiple
commands on each line, as long as each one is seperated by a space.
PBTLIB will skip any lines which are blank, and you can use the ;
charactor to indicate comments which will also be skipped.
IT'S SHAREWARE:
This program has been released as shareware. Shareware is a method of
software distribution which allows users to try a program before they
are REQUIRED to pay for it. PBTLIB can be tried for a 30 day period,
after which you must either stop using it, or pay a license fee to the
author for it's continued use.
It's important to note that PBTLIB is not crippled in any way, nor does
it display any annoying "UNREGISTERED" messages. It is up to you (and
your conscience) to pay the registration fee when the time comes. For
more information on the cost of registration and licensing information,
see the accompanying LICENSE.DOC file.
CONTACTING THE AUTHOR:
The author can be reached either by U.S. mail or electronic mail for
problems, questions, or suggestions.
Dave Navarro, Jr.
66-22 79th Place, Suite #2
Middle Village, NY 11379
BBS: (718) 837-3236
CIS: 73002,3506
Internet: pbtools@consultant.com